package com.sy.core.mapper;


import com.sy.core.model.SysUser;
import com.sy.core.model.ZTreeNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    int deleteByPrimaryKey(String pk);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(String pk);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    List<Map<String, Object>> queryList(Map<String, Object> parms);

    SysUser queryUserByPhone(Map<String, Object> map);

    SysUser authentication(SysUser sysUser);

    List<Map<String, Object>> queryUserChosen();

    List<ZTreeNode> selectUserTreeNode();

    SysUser selectUserByAccount(String account);

    SysUser authenticationByAccountAndPasss(@Param("account") String account, @Param("password") String password);
}